Quick start for conversion of JSON to C#

Obtain C# data structure

https://json2csharp.com/

Use Fields and Provide name

adjust the copied code

setup namespace

namespace Assets.Scripts.Models.SignUpResult

place [Serializable]

using System and System.Collections.Generic

using System;
using System.Collections.Generic;

namespace Assets.Scripts.Models.SignUpResult
{
    [Serializable]
    public class SignUpResultDTO
    {
        public bool success;
        public Data data;
    }

    [Serializable]
    public class Data
    {
        public string message;
        public int errorCode;
    }
}

Conversion and usage

        //Converting JSON responds to C# data structure
        SignUpResultDTO signUpResultDTO = JsonConvert.DeserializeObject<SignUpResultDTO>(response.DataAsText);
        ```