toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'platform': platform,
    'identifier': identifier,
    'name': name,
    'version': version,
    'buildNumber': buildNumber,
  }..removeWhere((key, value) => value == null);
}