ExternalApp.fromMap constructor

ExternalApp.fromMap(
  1. Map? map
)

Implementation

ExternalApp.fromMap(Map? map) {
  map?.forEach((key, value) {
    switch (key) {
      case JSON_ID:
        id = int.parse(value.toString());
        break;
      case JSON_ANDROID_CODE:
        name = value.toString();
        break;
      case JSON_ANDROID_CODE:
        androidCode = value.toString();
        break;
      case JSON_NAME:
        name = value.toString();
        break;
    }
  });
}