fromJson static method

EditGroupPersonsRequest? fromJson(
  1. dynamic jsonObject
)

Implementation

static EditGroupPersonsRequest? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = new EditGroupPersonsRequest();

  if (jsonObject["personIdsToAdd"] != null)
    for (var item in jsonObject["personIdsToAdd"])
      result.personIdsToAdd.add(item);
  if (jsonObject["personIdsToRemove"] != null)
    for (var item in jsonObject["personIdsToRemove"])
      result.personIdsToRemove.add(item);

  return result;
}