createdAtFromJson function

String createdAtFromJson(
  1. dynamic value
)

Implementation

String createdAtFromJson(value) {
  if (value is int) {
    return DateTime.fromMillisecondsSinceEpoch(value * 1000).toString();
  }
  return value.toString();
}