toJson method

Map<String, dynamic> toJson()

The request body of the git data API.

Implementation

Map<String, dynamic> toJson() => {
      'name': name,
      'email': email,
      if (date != null) 'date': date!.toUtc().toIso8601String(),
    };